package com.linsen.erp.admin.provider.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @Description:
 * @ProjectName: erp
 * @Package: com.linsen.erp.admin.provider.dto
 * @ClassName: RoleDTO
 * @Author: zhaoyong
 * @Email: zy765203718@gmail.com
 * @Date: 2023/7/27 11:58
 * @Version: 1.0
 */
@Data
@ApiModel("角色DTO")
public class RoleDTO implements Serializable {

    @ApiModelProperty("角色id")
    private String id;
    @ApiModelProperty("角色名称")
    private String name;
    @ApiModelProperty("唯一标识")
    private String code;
    @ApiModelProperty("数据权限类型：1，仅限个人；2，查看全部；3，仅限当前部门；4，当前部门及子部门；5，自定义范围")
    private Integer permissionType;
    @ApiModelProperty("优先级")
    private Integer priority;

    @ApiModelProperty("关联菜单id列表")
    private List<String> menuIdList;
    @ApiModelProperty("数据权限自定义范围id列表-部门")
    private List<String> roleDataScopeDeptIdList;
    @ApiModelProperty("数据权限自定义范围id列表-用户")
    private List<String> roleDataScopeUserIdList;

}
